/**
 * Copyright &copy; 2016-2017 <a href="https://www.lczyfz.com">联创智云</a> All rights reserved.
 */
package com.lczyfz.campusinfo.modules.jobmesmanage.entity;

import org.hibernate.validator.constraints.Length;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.lczyfz.campusinfo.modules.sys.entity.User;
import javax.validation.constraints.NotNull;

import com.lczyfz.campusinfo.common.persistence.DataEntity;

/**
 * 勤工视图Entity
 * @author zms
 * @version 2018-04-01
 */
public class StuJobSearch extends DataEntity<StuJobSearch> {
	
	private static final long serialVersionUID = 1L;
	private String jobstuId;		// 学生id
	private String joblinkid;		// 勤工id
	private Date createDate;		// creat_data
	private String stuworkId;		// 编号
	private String reqName;		// 需求方名称
	private String reqContent;		// 勤工内容
	private String reqNeed;		// 岗位要求
	private String reqPay;		// 劳酬
	private String reqStatement;		// 提供服利说明
	private String reqAddr;		// 工作地址
	private String styleId;		// 关联子类id
	private User user;		// 编号
	private String username;		// 学生姓名
	private String stuId;		// 学号
	private String schoolId;		// 学校编码
	private String schoolName; //学校名称
	private String majorId;		// 专业编码
	private String userstatus;		// 状态
	private String moblie;		// 手机
	private String userId; //报名者编号
	private Date endCreateDate;
	private Date beginCreateDate;
	private String enrollStatus;
	public String getEnrollStatus() {
		return enrollStatus;
	}

	public void setEnrollStatus(String enrollStatus) {
		this.enrollStatus = enrollStatus;
	}
	public Date getEndCreateDate() {
		return endCreateDate;
	}

	public void setEndCreateDate(Date endCreateDate) {
		this.endCreateDate = endCreateDate;
	}

	public Date getBeginCreateDate() {
		return beginCreateDate;
	}

	public void setBeginCreateDate(Date beginCreateDate) {
		this.beginCreateDate = beginCreateDate;
	}

	@Override
	public Date getCreateDate() {
		return createDate;
	}

	@Override
	public void setCreateDate(Date createDate) {
		this.createDate = createDate;
	}
	// 结束 creat_data
	public static long getSerialVersionUID() {
		return serialVersionUID;
	}
	public String getSchoolName() {
		return schoolName;
	}

	public void setSchoolName(String schoolName) {
		this.schoolName = schoolName;
	}
	public String getUserId() {
		return userId;
	}

	public void setUserId(String userId) {
		this.userId = userId;
	}

	public StuJobSearch() {
		super();
	}

	public StuJobSearch(String id){
		super(id);
	}

	@Length(min=1, max=65, message="学生id长度必须介于 1 和 65 之间")
	public String getJobstuId() {
		return jobstuId;
	}

	public void setJobstuId(String jobstuId) {
		this.jobstuId = jobstuId;
	}
	
	@Length(min=1, max=11, message="勤工id长度必须介于 1 和 11 之间")
	public String getJoblinkid() {
		return joblinkid;
	}

	public void setJoblinkid(String joblinkid) {
		this.joblinkid = joblinkid;
	}
	
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	
	@Length(min=1, max=11, message="编号长度必须介于 1 和 11 之间")
	public String getStuworkId() {
		return stuworkId;
	}

	public void setStuworkId(String stuworkId) {
		this.stuworkId = stuworkId;
	}
	
	@Length(min=0, max=30, message="需求方名称长度必须介于 0 和 30 之间")
	public String getReqName() {
		return reqName;
	}

	public void setReqName(String reqName) {
		this.reqName = reqName;
	}
	
	@Length(min=0, max=512, message="勤工内容长度必须介于 0 和 512 之间")
	public String getReqContent() {
		return reqContent;
	}

	public void setReqContent(String reqContent) {
		this.reqContent = reqContent;
	}
	
	@Length(min=0, max=512, message="岗位要求长度必须介于 0 和 512 之间")
	public String getReqNeed() {
		return reqNeed;
	}

	public void setReqNeed(String reqNeed) {
		this.reqNeed = reqNeed;
	}
	
	@Length(min=0, max=255, message="劳酬长度必须介于 0 和 255 之间")
	public String getReqPay() {
		return reqPay;
	}

	public void setReqPay(String reqPay) {
		this.reqPay = reqPay;
	}
	
	@Length(min=0, max=512, message="提供服利说明长度必须介于 0 和 512 之间")
	public String getReqStatement() {
		return reqStatement;
	}

	public void setReqStatement(String reqStatement) {
		this.reqStatement = reqStatement;
	}
	
	@Length(min=0, max=255, message="工作地址长度必须介于 0 和 255 之间")
	public String getReqAddr() {
		return reqAddr;
	}

	public void setReqAddr(String reqAddr) {
		this.reqAddr = reqAddr;
	}
	
	@Length(min=0, max=11, message="关联子类id长度必须介于 0 和 11 之间")
	public String getStyleId() {
		return styleId;
	}

	public void setStyleId(String styleId) {
		this.styleId = styleId;
	}
	
	@NotNull(message="编号不能为空")
	public User getUser() {
		return user;
	}

	public void setUser(User user) {
		this.user = user;
	}
	
	@Length(min=0, max=100, message="学生姓名长度必须介于 0 和 100 之间")
	public String getUsername() {
		return username;
	}

	public void setUsername(String username) {
		this.username = username;
	}
	
	@Length(min=0, max=64, message="学号长度必须介于 0 和 64 之间")
	public String getStuId() {
		return stuId;
	}

	public void setStuId(String stuId) {
		this.stuId = stuId;
	}
	
	@Length(min=0, max=64, message="学校编码长度必须介于 0 和 64 之间")
	public String getSchoolId() {
		return schoolId;
	}

	public void setSchoolId(String schoolId) {
		this.schoolId = schoolId;
	}
	
	@Length(min=0, max=64, message="专业编码长度必须介于 0 和 64 之间")
	public String getMajorId() {
		return majorId;
	}

	public void setMajorId(String majorId) {
		this.majorId = majorId;
	}
	
	@Length(min=0, max=100, message="状态长度必须介于 0 和 100 之间")
	public String getUserstatus() {
		return userstatus;
	}

	public void setUserstatus(String userstatus) {
		this.userstatus = userstatus;
	}
	
	@Length(min=0, max=200, message="手机长度必须介于 0 和 200 之间")
	public String getMoblie() {
		return moblie;
	}

	public void setMoblie(String moblie) {
		this.moblie = moblie;
	}
	
}